<?php
		if(!empty($dataSongList)): ?>
		<?php
		foreach($dataSongList as $value): ?>
		<div class="musicBlock">
			<a class="_player" href="<?php echo $music_url.'play/'.$value->song_id."-".seo_url($value->song_name); ?>" title="<?php echo $value->song_name; ?>" target="_blank">
			<div class="thumb">
				<?php echo exec_image(array(
					'folder' => 'album',
					'dimension' => '140x140',
					'file_name' => @$value->album->album_file_name.'.'.@$value->album->album_file_ext,
					'alt' => ''.@$value->song_name.'',	
					'title' => ''.@$value->song_name.''	
					)
				);?>
			</div>
			</a>			
			<div class="songTitle">
				<!--Playlist-->
				<a href="<?php echo $playlist_url.'music/'.$value->song_id.'-'.seo_url($value->song_name);?>" target="_blank" class="_playlist" title="add to playlist"></a>
				<a class="_player" href="<?php echo $music_url.'play/'.$value->song_id."-".seo_url($value->song_name); ?>" title="<?php echo $value->song_name; ?>" target="_blank">
					<?php echo $value->song_name; ?>
				</a>
			</div>
			<div class="songArtist">
			<?php foreach($value->artist as $key => $artist):?>
				<a href="<?php echo $artist_url.'summary/'.$artist->artist_id."-".seo_url($artist->artist_name); ?>" title="<?php echo $artist->artist_name; ?>" target="_blank">
					<?php echo $artist->artist_name; ?>
				</a>
			<?php endforeach;?>
			</div>
			<div class="view">
				ฟังเพลง <?php echo number_format($value->views); ?> ครั้ง
			</div>
		</div>
		<?php endforeach; ?>
		<?php else:?>
			<div class="empty">ขออภัย ยังไม่มีข้อมูลค่ะ</div>		
		<?php endif; ?>
<div class="clear"></div>
	<div class="pager">
		<?php echo $pager;?>
	</div>
